<?php
include "../class/cart.class.php";
session_start();
$cart = $_SESSION['cart'];
$goodsName = $_GET['name'];
if ($cart->increase($goodsName)) {
    echo 'inc ok!';
} else {
    echo 'inc failed!';
}
header("location: ../index.php");